package br.edu.ufcg.lsd.wbis.control.equipment;

import java.sql.Date;

import javax.persistence.Entity;

/**
 * This class represents a printer
 * @author Paulo Ricardo
 *
 */
@Entity
public class Printer extends Equipment {

	private boolean colored;

	@SuppressWarnings("unused")
	private Printer(){}
	
	/**
	 * 
	 * @param inventoryCode
	 * @param brand
	 * @param serialCode
	 * @param aquisitionDate
	 * @param model
	 * @param localization
	 * @param receipt
	 * @param reserve
	 * @param alocable
	 * @param available
	 * @param colored
	 */
	public Printer(String inventoryCode, String brand, String serialCode,
			Date aquisitionDate, String model, String localization,
			byte[] receipt, boolean available, boolean colored) {
		super(inventoryCode, brand, serialCode, aquisitionDate, model, localization,
				receipt, false, available, Printer.class);
		this.colored = colored;
	}

	/**
	 * 
	 * @return
	 */
	public boolean isColored() {
		return colored;
	}

	/**
	 * 
	 * @param colored
	 */
	protected void setColored(boolean colored) {
		this.colored = colored;
	}
	
	
	
}
